home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_1199 / 1692 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.3 KB

  1. Date: Mon, 11 Jul 1994 20:51:59 -0400
  2. From: "Nicholas S Castellano" <entropy@terminator.rs.itd.umich.edu>
  3. To: Stephen.Usher@earth.ox.ac.uk
  4. In-Reply-To: Stephen Usher's message of Mon, 11 Jul 1994 08:10:13 +0100 (BST) <21204.9407110710@earth.ox.ac.uk>
  5. Subject: MiNTlib (I think I'm on pl43): Bug in sprintf().
  6.  
  7. >MiNTlib pl 43 (or is it 44.. I'm losing track of patchlevels these days) and
  8. >GCC 2.3.3, no optimisation.
  9. >
  10. >When a statement such as the following is run sprintf terminates after the
  11. >first argument:-
  12. >
  13. >    sprintf((char *)temp, "%c%c%c%c%s%c%c", IAC, SB, TELOPT_TERMTYPE,
  14. >        TELOPT_QUAL, term, IAC, SB);
  15. >
  16. >    where IAC, SB, TELOPT* are all non-ACSII characters with the top bit
  17. >    set, ie. 127 < x < 256. The first two are actually (from memory)
  18. >    0xff and 0xfa.
  19. >
  20. >All you get in temp is the first byte, ie. 0xff. printf() works correctly.
  21.  
  22. This bug has been fixed and the fix is in (what will be) PL 45.  PL 45
  23. should be released tomorrow or the next day in an extremely untested
  24. state; I cut the patches this weekend so now I've just got to wrap it
  25. up and ship it soon as I get a free minute.
  26.  
  27. Cheers,
  28. entropy
  29.  
  30. --
  31. entropy -- it's not just a good idea, it's the second law.
  32. Personal mail:      entropy@gnu.ai.mit.edu
  33. MiNT library mail:  entropy@terminator.rs.itd.umich.edu
  34. "what do you have against octal?" -jrb
  35.  
  36.